package hw88.zuoye6;

public class FizzBuzz {
	private  int n;
	public FizzBuzz(int n) {
		this.n=n;
	}
	public void FizzBuzz(){
		Thread A = new FizzThread(n);
        Thread B = new BuzzThread(n);
        Thread C = new FizzBuzzThread(n);
        Thread D = new NumberThread(n);
        
        A.start();
        B.start();
        C.start();
        D.start();
        
        try {
			A.join();
			B.join();
            C.join();
            D.join();
		} catch (InterruptedException e) {
			
			e.printStackTrace();
		}
	}
}
